package com.jintoufs.util.resource;
/**
 * Created by Administrator on 2017/7/18,018.
 */

public class Node {
    /** 节点Id*/
    private int nodeId;
    /** 父节点Id*/
    private int parentId;
    /** 文本内容*/
    private Object resource;

    /**
     * 构造函数
     *
     * @param nodeId 节点Id
     */
    public Node(int nodeId)
    {
        this.nodeId = nodeId;
    }

    /**
     * 构造函数
     *
     * @param nodeId 节点Id
     * @param parentId 父节点Id
     */
    public Node(int nodeId, int parentId,Object resource)
    {
        this.nodeId = nodeId;
        this.parentId = parentId;
        this.resource = resource;
    }

    public int getNodeId() {
        return nodeId;
    }

    public void setNodeId(int nodeId) {
        this.nodeId = nodeId;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }


    public Object getText() {
        return resource;
    }

    public void setText(Object resource) {
        this.resource = resource;
    }
}
